package com.tzy.order.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tzy.common.entity.Orders;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tzy.common.entity.ShoppingCart;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 订单表 Mapper 接口
 * </p>
 *
 * @author 刘舒
 * @since 2022-03-03
 */
@Repository
public interface OrdersMapper extends BaseMapper<Orders> {
    public Page<Orders> orderList(Integer pageNum);
    public List<Orders> findListById(int userId);
    public List<Orders> findList(Integer pageNum,Integer size,String shopName);
    @Select(" select count(1) from orders ")
    int findTotal();
    /**
     * 批量删除订单信息
     * @param ids
     * @return
     */
    int deleteOrderByIds(String[] ids);
    public Orders findOrder(int orderId);

    public Orders selorder(String dindanhao);
}